
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Sorting rows in a TreeView DataWindow</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp240.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp242.htm" >Next</A>
<!-- End Header -->
<A NAME="CEGHHEAB"></A><h1>Sorting rows in a TreeView DataWindow</h1>
<A NAME="TI8339"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To sort the rows within levels in a TreeView DataWindow:</p>
<ol><li class=fi><p>Select Rows&gt;Sort from the menu
bar.</p></li>
<li class=ds><p>Drag the columns that you want to sort the rows
on from the Source Data box to the Columns box.</p></li></ol>
<A NAME="TI8340"></A><p>The order of the columns determines the precedence of the
sort. The sort order is ascending by default. To sort in descending
order, clear the Ascending check box.</p>
<A NAME="TI8341"></A><p>For example, the sample DataWindow shown in <A HREF="pbugp237.htm#CEGEEEHH">"Example"</A> has department
name as the first level and the employee's city of residence
as the second level. </p>
<br><img src="images/tvsort01.gif">
<br><A NAME="TI8342"></A><h4>Other actions you can take</h4>
<A NAME="TI8343"></A><p>To reorder the columns, drag them up or down in the list.
To delete a column from the sort columns list, drag the column outside
the dialog box. To specify an expression to sort on, double-click
a column name in the Columns box and modify the expression in the
Modify Expression dialog box.</p>

